package com.adee.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

// 开启远程调用
@EnableFeignClients(basePackages = "com.adee.gulimall.product.feign")
// 开启nacos服务注册发现
@EnableDiscoveryClient
@EnableAutoConfiguration
// 如果就是要扫描到启动类所在包目录之外的类，使其生成bean对象，可以在启动类上加@ComponentScan注解
@ComponentScan(basePackages = {
        "com.adee.gulimall.product",
        "com.adee.gulimall.common.config"
})
@MapperScan("com.adee.gulimall.product.dao")
public class GulimallProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }
}
